module.exports = function (grunt) {
    grunt.initConfig({
        coffee: {
            compile: {
                files: [
                    { expand: true, cwd: 'src/coffee', src: ['*.coffee'], dest: 'build/script', ext: '.js' }
                ]
            }
        },
        watch: {
            jade: { files: ['src/jade/*.jade'], tasks: ['jade'] },
            sass: { files: ['src/sass/*.scss'], tasks: ['sass'] },
            coffee: { files: ['src/coffee/*.coffee'], tasks: ['coffee'] },
            copy_lib: { files: ['lib/*'], tasks: ['copy:copy_lib'] },
            copy_img: { files: ['src/img/*'], tasks: ['copy:copy_img'] }
        }
    });

    // 加载任务
    grunt.loadNpmTasks('grunt-contrib-watch');
    grunt.loadNpmTasks('grunt-contrib-coffee');

    // 定义任务
};